package com.liwq.base.thread;

import java.util.concurrent.Callable;

/**
 * @author : liwq
 * @version : 1.0
 * @date : 2023/1/29
 **/
public class MyCallable implements Callable<Integer> {

    @Override
    public Integer call() throws Exception {

        System.out.println("实现callable接口实现多线程，并返回值：1");

        Thread.sleep(3000);
        return 1;
    }
}
